<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>APP</title>
    <link rel="stylesheet" type="text/css" href="../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/person_center_frame.css" />
</head>


<body>
<ul class="aui-list aui-form-list" style="margin:0.6rem 0;">

            <li class="aui-list-item" style="padding:0.5rem 1rem;">
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-label">
                        邮箱：
                    </div>
                    <div class="aui-list-item-input">
                        <p id="old-email"></p>
                    </div>
                </div>
            </li>
          </ul>
            <ul class="aui-list aui-form-list" style="padding:0.6rem 0">

            <li style="padding:0 1rem;margin:1.5rem 0;border:none;">

                <input id='email' type="text" placeholder="请输入您需要认证或者修改的邮箱" style="border:1px solid #ccc;text-align:center;border-radius:0.5rem;">
            </li>
            <li style="padding:0 1rem;margin:1.5rem 0;border:none;">
                <div class="aui-list-item-inner">

                    <div class="aui-list-item-input">
                        <input id='code' type="number" placeholder="请输入验证码" style="border:1px solid #ccc;text-align:center;border-radius:0.5rem;">
                    </div>
                    <div class="aui-list-item-label" style="border:1px solid #ccc;border-radius:0.5rem;background:#ff4285;font-size:0.6rem;color:#fff;" onclick="fnSendMsg()">
                    <p style="margin:0 auto;color:#fff;">获取验证码</p>
                    </div>
                </div>
            </li>

        </ul>
        <div style="padding:0 1rem;margin:1.5rem 0;border:none;">
          <p style="color:#ff4285; line-height：2rem">温馨提示：</p>

          <p style="line-height：2rem">1.如果未在邮箱收件箱收到，请到垃圾箱查看。</p>
    <p style="line-height：2rem">2.修改完成，请用新邮箱登录平台。</p>




          </div>
<div class="" style="padding:0 1rem;margin:1.5rem 0;border:none;">
            <div tapmode onclick="register()" ; style="border-radius:0.6rem;border:1px solid #ccc;text-align:center;line-height:2.4rem;background:#ff4285;color:#fff;width:100%；">提交</div>
</div>





</body>

<script id="interpolationtmpl" type="text/x-dot-template">


</script>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="./conf/config.js"></script>
<script type="text/javascript" src="./js/common.js"></script>
<script type="text/javascript" src="../script/doT.min.js"></script>
<script type="text/javascript">
    apiready = function() {

        fnGetList(api.pageParam.email);
        initRefreshCommon('fnGetList(api.pageParam.email)');
    };

    function fnGetList(pageParam_) {
        $("#old-email").html(pageParam_);
        api.refreshHeaderLoadDone();
    }

    function fnSubmitData(){

var phone=$("#email").val();
var code=$("#code").val();

        fnGetDataCommon("callBack1", "index.php?m=api&c=appnew&a=update_phone", "post",{code:code,phone:phone});
    }
    function callBack1Res(ret){
      api.toast({
          msg: ret.msg,
          duration: 2000,
          location: 'middle'
      });
      fncloseWinCommon("my_home","my_home_frame",'fnGetDataCommon("MyHome","index.php?m=api&c=appnew&a=get_userinfo","get")');
    }
    function callBackRes(ret){
      api.toast({
          msg: ret.msg,
          duration: 2000,
          location: 'middle'
      });
    }
    function fnSendMsg() {
      var email=$("#email").val();

            fnGetDataCommon("callBack", "index.php?m=api&c=appnew&a=check_phone_exsit", "post",{a:"send_phone_code",enum:"phone",phone:phone1});
    }

    function closeWin() {
        GoToRefresh(); //关闭窗口时先刷新指定窗口页面,如需刷新主界面，name请填写root
        api.closeWin({});
    }

    function GoToRefresh() {
        api.execScript({
            name: 'my_home',
            frameName: 'my_home_frame',
            script: 'fnGetData(1);'
        });
    }
</script>

</html>
